package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wk
 * @create 2021-08-24 19:25
 */
@Service
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {
    /**
     * 在sql语句中要对参数进行判断，mybatis底层会将属性设置为args0 args1...或者param1 param2...
     * 添加@param可以避免 转换直接使用参数进行判断
     *
     * @param category1Id
     * @param category2Id
     * @param category3Id
     * @return
     */
    List<BaseAttrInfo> attrInfoList(
            @Param("category1Id") Long category1Id,
            @Param("category2Id") Long category2Id,
            @Param("category3Id") Long category3Id);
}
